import BTDecoratorNode from "../BTDecoratorNode";
import { BTResult, RUNNING, SUCCESS } from "../BTEnum";

export default class BTSuccess extends BTDecoratorNode {
    decorator(result: BTResult) {
        return result !== RUNNING ? SUCCESS : result;
    }
}
